<template>
  <div class="menu-tab">
    <el-menu :default-active="menuList[0].path"
             class="el-menu-vertical-demo"
             @open="handleOpen"
             @close="handleClose"
             router
             :collapse="false">
      <el-menu-item v-for="pathObj in menuList" :key="pathObj.value" :index="pathObj.path">
        {{pathObj.value}}
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script>
  export default {
    name: "MenuTab",
    props: {
      menuList: Array
    },
    data() {
      return {
        isCollapse: true
      };
    },
    methods: {
      handleOpen() {

      },
      handleClose() {

      }
    }
  }
</script>

<style scoped>
  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 160px;
    min-height: 400px;
  }
</style>
